package com.example.s17_springsecurity_db.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.s17_springsecurity_db.pojo.Role;
import com.example.s17_springsecurity_db.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User>
{
    /**
     * 根据用户编号 查询他有哪些角色
     * @param id
     * @return
     */
    List<Role> getUserRolesByUid(Integer id);
}
